package meijuli.com.join51.business.model;


import java.io.Serializable;

/**
 * 服务器返回数据结构
 *
 * @author scott
 */
public class ResObj<T> implements Serializable {
    private int code = -1;
    private T data;
    private Page page;
    private String msg;
    private String goodsDetailUrl;
    /**
     * 请求成功
     */
    public static final long CODE_SUCCESS = 0;
    /**
     * 无效Token
     */
    public static final long CODE_INVALID_TOKEN = 110002;
    /**
     * Token已过期
     */
    public static final long CODE_TOKEN_EXPIRED = 110001;
    /**
     * 资料未完善
     */
    public static final long CODE_COMPLETE_INFO = 100027;
    /**
     * 没有分类
     */
    public static final long CODE_NO_CATEGORY   = 10001;

    public String getGoodsDetailUrl() {
        return goodsDetailUrl;
    }

    public void setGoodsDetailUrl(String goodsDetailUrl) {
        this.goodsDetailUrl = goodsDetailUrl;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
